package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/7 14:26
 * @Version 1.0
 */
public class object_equivalence {
    /** 测试对象的等价性
     *
     * */
    public static void main(String[] args) {
        Value v1 = new Value();
        Value v2 = new Value();
        v1.i = v2.i = 100;
        System.out.println(v1.equals(v2));
    }
}

class Value{
    int i;
}

//Output: false
